package learn_concurrent._9;

public class T7 {

    private T7() {}

    static {
        System.out.println("static block");
    }

    private static class LazyHolder {
        static {
            System.out.println("LazyHolder static block");
        }
        private static final T7 INSTANCE = new T7();
    }

    public static T7 getInstance() {
        return LazyHolder.INSTANCE;
    }

    public static void ff() {
        System.out.println("ff method...");
    }

}
